﻿#ifndef CUSTOMDELEGATE_H
#define CUSTOMDELEGATE_H

#include<QStyledItemDelegate>
#include<QPainter>
struct city
{
    QString name;
    QString code;
};

struct forecast
{
    QString high;
    QString low;
    QString ymd;
    QString week;
    QString type;
    forecast(QString h1,QString l1,QString y1,QString w1,QString t1)
    {
        high=h1;
        low=l1;
        ymd=y1;
        week=w1;
        type=t1;
    }
};
class myDelegate : public QStyledItemDelegate
{
    Q_OBJECT
public:
    myDelegate() ;
    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
};

#endif // CUSTOMDELEGATE_H
